package com.newidea.jiangong.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(title = "大屯Modbus数据")
@TableName("heat_facility")
@Data
public class HeatFacility {

    @Schema(title = "主键")
    @TableId(type = IdType.AUTO)
    private String id;

    @Schema(title = "设备名称")
    private String name;

    @Schema(title = "地址")
    private String address;

    @Schema(title = "值")
    private String value;

    @Schema(title = "数据所属公司", description = "目前只有：大屯、建邦枫景、华威")
    private String company;

    @Schema(title = "采集时间")
    private String createTime;

    @Schema(title = "是否是最新的数据")
    private boolean newest;
}
